<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <div id="app"> 
      <btn-a><p>这是一个秘密</p></btn-a> 
      <div>
        <slot></slot>
      </div>    
    </div>
    <script src="./vue.js"></script>
    <script>
       Vue.component("btn-a",{
        template:`<div>
        <slot></slot>
          </div>`,
        data(){
          return{
            
          }
        },
      })
      const vm=new Vue({
        el:'#app',
        data:{},
        methods:{},
       })
    </script>
  </body>
</html>